package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_ThongBao_ChiNhanh")
public class Tbl_QLDTTXA_ThongBao_ChiNhanh implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Boolean co;
   private Tbl_QLDTTXA_ThongBaoTuyenSinh thongBaoId = null;
   private Tbl_QLDTTXA_DM_ChiNhanh chiNhanhId = null;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   public Boolean getCo() {
   	return co;
   }
   public void setCo(Boolean co) {
   	this.co= co;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="ThongBaoId")
   @ForeignKey(name="FK_tbl_QLDTTXA_ThongBaoTuyenSinh_tbl_QLDTTXA_ThongBao_ChiNhanh")
   public Tbl_QLDTTXA_ThongBaoTuyenSinh getThongBaoId() {
	    return thongBaoId;
   }
   public void setThongBaoId(Tbl_QLDTTXA_ThongBaoTuyenSinh thongBaoId) {
	    this.thongBaoId=thongBaoId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="ChiNhanhId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_ChiNhanh_tbl_QLDTTXA_ThongBao_ChiNhanh")
   public Tbl_QLDTTXA_DM_ChiNhanh getChiNhanhId() {
	    return chiNhanhId;
   }
   public void setChiNhanhId(Tbl_QLDTTXA_DM_ChiNhanh chiNhanhId) {
	    this.chiNhanhId=chiNhanhId;
   }
}//endClass 

